#include "Vertex.h"

namespace Math{
    
    Vertex::Vertex(){}
    
    Vertex::Vertex(float x,float y,float z,float w){
        m_Position = Vector(x,y,z);
        m_Weight = w;
        m_hasNormal = false;
    }
    
    Vertex::Vertex(Vector position,Vector normal,Vector uv,float w){
        m_Position = position;
        m_Normal = normal;
        m_uv = uv;
        m_Weight = w;
        m_hasNormal = true;
    }
    
    Vector& Vertex::getPosition(){
        return m_Position;
    }
    
    void Vertex::addNormal(Vector& v){
        m_Normal+=v;
    }
    Vector Vertex::vectorFromVertices(Vertex A,Vertex B){
        return B.m_Position-A.m_Position;
    }
}
